<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>我的模板</title>

	</head>
	<body>
		<div id="app">
			<label for="nan" >
				男<input type="radio" id="nan" v-model="sex" value="男">
			</label>
			<label for="nv">
				女<input type="radio" id="nv" v-model="sex" value="女">
			</label>
			{{sex}}
		</div>	
	</body>



	<script src="https://cdn.bootcss.com/vue/2.6.11/vue.js"></script>
	<script>
		const app = new Vue({
			el: '#app',
			data: {
				sex: '',
			},
		})
	</script>
